import React, { Component, Fragment } from 'react'
import  Home  from '../home'
import {Route,Switch } from 'react-router-dom'
import LeftNav from '../../components/left-nav'
import Header from '../../components/header'
import { Layout } from 'antd';

const { Footer, Sider, Content } = Layout;

export default class Admin extends Component {
    render() {
        return (
            <Fragment>
                <Layout style={{minHeight:'100%'}}>
              <Sider>
                  <LeftNav/>
              </Sider>
                <Layout>
                    <Header>Header</Header>
                    <Content style={{margin:'20px', backgroundColor:'#fff'}}>
                    <Switch>
                        <Route path='/home' component={Home}/>
                    </Switch>
                    </Content>
                    <Footer style={{textAlign:'center',color:'#ccc'}}>推荐使用谷歌浏览器，可以获得更佳页面操作体验！</Footer>
                </Layout>
                </Layout>
            </Fragment>
        )
    }
}
